var config = require('../../utils/config.js')
const app = getApp();
Page({
  data: {
    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar,
    list: []
  },
  onLoad: function () {
    
  },
  onReady:function(){
    this.net_subscribeList()
  },
  net_subscribeList: function () {

    var that = this
    let uid = wx.getStorageSync('uid')

    wx.request({
      url: config.siteURL + '/api/Subscribe/mySubscribe',
      data: {
        uid: uid
      },
      method: 'GET', 
      success: function(res){
        that.setData({
          list: res.data.data
        })
        that.onLoad()
      },
      fail: function() {
        // fail
      },
      complete: function() {
        // complete
      }
    })
  }
})